class UrlContainer():
    def __init__(self, environment):
        self.environment = environment

    def url_class(self):
        if self.environment == "product":
            dfbz_url = "http://112.125.25.114:90/api/finals/{0}/send/agent"  # 答复补正、办登测试服务器
            st_url = 'http://112.125.25.114:90/api/finals/acceptance_file'  # 受通测试接口
            zs_url = 'http://112.125.25.114:90/api/finals/{0}/upload/cert'  # 证书测试接口
            abnormal_url = 'http://112.125.25.114:90/api/finals/upload/successAndStopFile'  # 异常文件测试接口
            other_url = 'http://112.125.25.114:90/api/finals/update/notifyFile'  # 其他文件测试接口

        else:
            dfbz_url = "http://test.api.whxhhgip.com/api/finals/{0}/send/agent"  # 答复补正、办登测试服务器
            st_url = 'http://test.api.mingyukehui.com/api/finals/acceptance_file'  # 受通测试接口
            zs_url = 'http://test.api.mingyukehui.com/api/finals/{0}/upload/cert'  # 证书测试接口
            abnormal_url = 'http://test.api.whxhhgip.com/api/finals/upload/successAndStopFile'  # 异常文件测试接口
            other_url = 'http://test.api.whxhhgip.com/api/finals/update/notifyFile'  # 其他文件测试接口

        return {'dfbz': dfbz_url, 'st': st_url, "zs": zs_url, "yc": abnormal_url, "ot": other_url}
